/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const analysisRouter = {
  path: '/analysis',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Analysis',
  meta: {
    title: '数据分析',
    icon: 'chart'
  },
  children: [
    {
      path: 'online-ratio',
      component: () => import('@/views/analysis/line'),
      name: 'online',
      meta: { title: '上线率', noCache: true,icon: 'el-icon-connection' }
    },
    // {
    //   path: 'online-ratio',
    //   component: () => import('@/views/analysis/line'),
    //   name: 'online',
    //   meta: { title: '上线率', noCache: true,icon: 'el-icon-connection' }
    // },
    // {
    //   path: 'error-ratio',
    //   component: () => import('@/views/analysis/line'),
    //   name: 'error',
    //   meta: { title: '漏水率', noCache: true ,icon: 'el-icon-error'}
    // },
    // {
    //   path: 'no-water',
    //   component: () => import('@/views/analysis/line'),
    //   name: 'water',
    //   meta: { title: '零用水', noCache: true ,icon: 'el-icon-water-cup'}
    // }
  ]
}

export default analysisRouter
